from django.db import models

# Create your models here.
#定义用户模型
class SimpleUser(models.Model):
    #用户账号，unique唯一
    username = models.CharField(max_length=20, unique=True)
    #用户密码
    password = models.CharField(max_length=100)

    def __str__(self):
        return self.username